# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=srain
pkgver=1.5.1
pkgrel=0
pkgdesc="Modern IRC client written in GTK."
url="https://srain.silverrainz.me"
arch="all"
license="GPL-2.0"
makedepends="cmake gettext glib-dev gtk+3.0-dev libconfig-dev libsecret-dev libsoup-dev
	meson ninja openssl-dev>3 py3-sphinx"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/SrainApp/srain/archive/$pkgver.tar.gz"

build() {
	abuild-meson . builddir
	ninja -C builddir
}

check() {
	meson test --no-rebuild --print-errorlogs -C builddir
}

package() {
	DESTDIR="$pkgdir" ninja -C builddir install
}

sha512sums="
77fe10e7cc404c575730a2feda0f8b7be44e18f0c56ff7b1c978cac5fc26fb69fdf8c4aaf040603df0d4d1047499e55503adea895643341c5a1e64bb16900d41  srain-1.5.1.tar.gz
"
